package com.vertx.starter.rxjava;


/**
 * 链式编程
 */
public abstract class A {

    abstract void go();

    public static A1 createA1() {
        return new A1();
    }

    public A2 createA2() {
        return new A2(this);
    }

    public A3 createA3() {
        return new A3(this);
    }

    public static void main(String[] args) {
        A.createA1().createA2().createA3().go();
    }
}
